<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>

<!--准备好一个容器-->
<div id="root">
    <h1>插值语法</h1>
    <h3>Hello, {{name}}</h3>
    <hr>
    <h1>指令语法</h1>
    <a v-bind:href="url">点击我</a>
    <a :href="erji.url">点我</a>
</div>


<script type="text/javascript">
    Vue.config.productionTip = false; //阻止 vue 在启动时生成产生提示

    new Vue({
        el: '#root',
        data: {
            name: '哈哈哈',
            url: 'http://jiuqi.link',
            erji: {
                url: 'http://www.baidu.com',
            }
        }
    })
</script>
</body>
</html>


















